const app = getApp();
Page({
    data: {
        StatusBar: app.globalData.StatusBar,
        CustomBar: app.globalData.CustomBar,
        TabbarBot: app.globalData.tabbar_bottom,
        swiperlist: [
            '/img/4x3-1.jpg',
            '/img/4x3-2.jpg',
            '/img/4x3-3.jpg',
            '/img/4x3-4.jpg',
        ],
    },
    onLoad: function (options) {
        let that = this;
        console.log(options.id)
        this.shopInfo(options.id)
    },
    shopInfo:function(sid){
      wx.request({
        method:'GET',
        url: 'http://localhost:8989/shop/' + sid ,
        success:(res=>{
          this.setData({
            shop: res.data.data
          })
          console.log(res)
        })
      })
    },
});
